package com.kayt.cyberBar.cpublic.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.cpublic.business.entity.po.CPublicShift;

public interface IPublicShiftDao {
	public Boolean checkExist(String name) throws SQLException;
	
	CPublicShift findById(String shiftId);
	
	CPublicShift findByCode(String code) throws SQLException;
	
	Integer delete(String shiftId);
	
	CPublicShift save(CPublicShift entity) throws SQLException;
	
	void modify(CPublicShift entity) throws SQLException;
	
	PageData<CPublicShift> findByPage(String hql, Object[] params, LinkedHashMap<String, String> orderMap) throws SQLException;
	
	public PageData<CPublicShift> getShiftList(Integer pageNum,Integer pageSize,String storeCode,LinkedHashMap<String, String> orderMap) throws SQLException;
}
